package com.ccrfid.rmc6.entity.business.rollcall;

import javax.persistence.*;
import java.sql.Timestamp;

@Entity
@Table(name = "rollcall_result")
public class RollcallResultEntity {
    private Long id;
    private Long rollcallId;
    private Timestamp rollcallTime;
    private String userAccount;
    private Long orgId;
    private String orgName;
    private Long personnelId;
    private String personnelName;
    private Long cardNumber;
    private Integer cardOnlineStatus;
    private Long locationId;
    private String locationName;
    private Long locationBindOrgId;
    private Integer locatorAddress;
    private Timestamp locateTime;
    private Integer result;
    private String remark;

    @Id
    @Column(name = "id", nullable = false)
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Basic
    @Column(name = "rollcall_id", nullable = false)
    public Long getRollcallId() {
        return rollcallId;
    }

    public void setRollcallId(Long rollcallId) {
        this.rollcallId = rollcallId;
    }

    @Basic
    @Column(name = "rollcall_time", nullable = false)
    public Timestamp getRollcallTime() {
        return rollcallTime;
    }

    public void setRollcallTime(Timestamp rollcallTime) {
        this.rollcallTime = rollcallTime;
    }

    @Basic
    @Column(name = "user_account", length = 64)
    public String getUserAccount() {
        return userAccount;
    }

    public void setUserAccount(String userAccount) {
        this.userAccount = userAccount;
    }

    @Basic
    @Column(name = "org_id")
    public Long getOrgId() {
        return orgId;
    }

    public void setOrgId(Long orgId) {
        this.orgId = orgId;
    }

    @Basic
    @Column(name = "org_name", length = 64)
    public String getOrgName() {
        return orgName;
    }

    public void setOrgName(String orgName) {
        this.orgName = orgName;
    }

    @Basic
    @Column(name = "personnel_id", nullable = false)
    public Long getPersonnelId() {
        return personnelId;
    }

    public void setPersonnelId(Long personnelId) {
        this.personnelId = personnelId;
    }

    @Basic
    @Column(name = "personnel_name", length = 32)
    public String getPersonnelName() {
        return personnelName;
    }

    public void setPersonnelName(String personnelName) {
        this.personnelName = personnelName;
    }

    @Basic
    @Column(name = "card_number")
    public Long getCardNumber() {
        return cardNumber;
    }

    public void setCardNumber(Long cardNumber) {
        this.cardNumber = cardNumber;
    }

    @Basic
    @Column(name = "card_online_status")
    public Integer getCardOnlineStatus() {
        return cardOnlineStatus;
    }

    public void setCardOnlineStatus(Integer cardOnlineStatus) {
        this.cardOnlineStatus = cardOnlineStatus;
    }

    @Basic
    @Column(name = "location_id")
    public Long getLocationId() {
        return locationId;
    }

    public void setLocationId(Long locationId) {
        this.locationId = locationId;
    }

    @Basic
    @Column(name = "location_name", length = 64)
    public String getLocationName() {
        return locationName;
    }

    public void setLocationName(String locationName) {
        this.locationName = locationName;
    }

    @Basic
    @Column(name = "location_bind_org_id")
    public Long getLocationBindOrgId() {
        return locationBindOrgId;
    }

    public void setLocationBindOrgId(Long locationBindOrgId) {
        this.locationBindOrgId = locationBindOrgId;
    }

    @Basic
    @Column(name = "locator_address")
    public Integer getLocatorAddress() {
        return locatorAddress;
    }

    public void setLocatorAddress(Integer locatorAddress) {
        this.locatorAddress = locatorAddress;
    }

    @Basic
    @Column(name = "locate_time")
    public Timestamp getLocateTime() {
        return locateTime;
    }

    public void setLocateTime(Timestamp locateTime) {
        this.locateTime = locateTime;
    }

    @Basic
    @Column(name = "result", nullable = false)
    public Integer getResult() {
        return result;
    }

    public void setResult(Integer result) {
        this.result = result;
    }

    @Basic
    @Column(name = "remark", length = 255)
    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public String toString() {
        return "RollcallResultEntity{" +
                "id=" + id +
                ", rollcallId=" + rollcallId +
                ", rollcallTime=" + rollcallTime +
                ", userAccount='" + userAccount + '\'' +
                ", orgId=" + orgId +
                ", orgName='" + orgName + '\'' +
                ", personnelId=" + personnelId +
                ", personnelName='" + personnelName + '\'' +
                ", cardNumber=" + cardNumber +
                ", cardOnlineStatus=" + cardOnlineStatus +
                ", locationId=" + locationId +
                ", locationName='" + locationName + '\'' +
                ", locationBindOrgId=" + locationBindOrgId +
                ", locatorAddress=" + locatorAddress +
                ", locateTime=" + locateTime +
                ", result=" + result +
                ", remark='" + remark + '\'' +
                '}';
    }
}
